package com.ruibang.glass.iso.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;

/**
 * @Author: songJinKang
 * @CreateTime: 2024-06-17  21:28
 * @Description: TODO:权限管理实体
 * @Version: 1.0
 */
@Data
@TableName("g_iso_permission_manage")
public class PermissionManage extends BaseEntity {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty("主键ID")
    private String id;

    @ApiModelProperty("文件管理ID")
    private String manageId;

    @ApiModelProperty("对象类型 1:部门，2:用户")
    private String objType;

    @ApiModelProperty("对象Id")
    private String objId;

    @ApiModelProperty("状态 1：有效，0：过期")
    private String status;

    @ApiModelProperty("查看结束时间")
    private LocalDate checkEndDate;

    @ApiModelProperty("编辑结束时间")
    private LocalDate editEndDate;

    @ApiModelProperty("状态 1：永久，0：时效性")
    private String type;

    @ApiModelProperty("查看 1：是  0：否")
    private String perCheck;

    @ApiModelProperty("编辑 1：是  0：否")
    private String perEdit;

    @ApiModelProperty("下载 1：是  0：否")
    private String perDown;

    @ApiModelProperty("是否删除：1：是 0：否")
    @TableLogic
    private String isDelete;

    @ApiModelProperty("文件名称")
    @TableField(exist = false)
    private String fileName;

    @ApiModelProperty("对象名称")
    @TableField(exist = false)
    private String objName;
}
